<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>top menu</title>
	<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" />
	<script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
	<link type="text/css" rel="stylesheet" href="css/menu_top.css" media="all" />
<script type="text/javascript">
function kaoqin(type){
	var msg="";
	if(type=="on"){
		msg="签到";
	}else if(type=="off"){
		msg="签退";
	}
	$.post("kaoqin/kaoqin.html", { Action: "post", type: type },  
			function (data, textStatus){         
				if(data=="true"){
					alert(msg+'成功');
				}else{
					alert("今天已经签过到了！");
				}
			} 
		,"text").error(function(XmlHttpRequest,textStatus, errorThrown) {
			alert(XmlHttpRequest.responseText);
		});
}
function logout(){
	if(window.confirm("确定注销当前登录？")){
		location.href = 'logout.html';
	}
}
function isclose(){
	if(window.confirm("确定退出系统？")){
		window.parent.opener = null;
		window.parent.open('','_self');
		window.parent.close();
	}
}
function config(){
}
</script>
</head>
<body>
<div id="header">
       <div id="header_left">
	       <div class="logon"></div>
		   <div class="nav"  id="toolbar">
           </div>
	   </div>   
	   
	   
	   <div id="header_right"> 
    	<div class="inner_header_right" id='rtools'>       	
    	 <div class="inner_header_left" id="ltools">  
    	 <div id="inner_header_left_1">  
    	 </div>	 
		<ul>
		  <li><a href="content.html" target="contentFrame"><span>主页</span></a></li>
		  <li><a href="###" class="nav05"><span>设置</span></a></li>
		  <li><a href="###" onclick="kaoqin('on')" class="nav07"><span>签到</span></a></li>
		  <li><a href="###" onclick="kaoqin('off')" class="nav08"><span>签退</span></a></li>
		  <li><a href="###" onclick="logout();" class="nav09"><span>注销</span></a></li>
		  <li><a href="###" onclick="isclose();" class="nav10"><span>退出</span></a></li>
		</ul>
		 </div>
	   </div>
	   </div>
		<h1> 
				<MARQUEE id=m1 SCROLLAMOUNT="5" SCROLLDELAY="200"> ${sessionScope.user.name } 您好！欢迎登录人力资源管理信息系统</MARQUEE>
	   </h1>
	   </div>
</body>
</html>
